package com.jdcjk.project.login.model;

import android.content.Context;

import com.jdcjk.base.model.BaseModel;
import com.zhy.http.okhttp.OkHttpUtils;
import com.zhy.http.okhttp.callback.StringCallback;

/**
 * Created by Administrator on 2016/12/13 0013.
 * 登录程序数据提供类
 */
public class LoginModel extends BaseModel {

    public LoginModel(Context context) {
        super(context);
    }

    public void login(String url, String account, String password, StringCallback stringCallback) {
        OkHttpUtils.post()
                .url(url)
                .addParams("account", account)
                .addParams("password", password)
                .build()
                .execute(stringCallback);
    }

}
